<!--
题目类型列表
 add by yyp 2019-05-31
-->
<template lang="pug">
  keep-alive
    kalix-table(bizKey="SubjectType" title='题目类型列表' ref="kalixTable"
    v-bind:tableFields="tableFields"
    v-bind:targetURL="SubjectTypeURL"
    v-bind:bizDialog="SubjectTypeDialog"
    v-bind:btnList="subjectTypeBtnList"
    v-bind:toolbarBtnList="toolbarBtnList"
    bizSearch="subjecttypeSearch")
      template(slot="tableColumnSlot")
        el-table-column(prop="name" label="题目类型" align="center")
        <!--el-table-column(prop="imgUrl" label="直播分类图片")-->
          <!--template(slot-scope="scope")-->
            <!--img(:src="scope.row.imgUrl" width="100px" readonly="readonly")-->
</template>

<script type="text/ecmascript-6">
  import {SubjectTypeURL} from '../../config.toml'
  import {subjecttypeConfigBtnList} from './config'
  import KalixTable from '../../../../../components/corelib/components/common/baseTable'

  export default {
    name: 'kalix-mooc-subjecttype',
    components: {KalixTable},
    data() {
      return {
        SubjectTypeURL: SubjectTypeURL,
        tableFields: [
          {prop: 'name', label: '题目类型'}
          // {prop: 'imgUrl', label: '直播分类图片'}
        ],
        SubjectTypeDialog: [
          {id: 'add', dialog: 'subjecttypeAdd'},
          {id: 'edit', dialog: 'subjecttypeEdit'},
          {id: 'view', dialog: 'subjecttypeView'}
        ],
        subjectTypeBtnList: subjecttypeConfigBtnList,
        toolbarBtnList: [
          {id: 'add', isShow: true, title: '添加', icon: 'icon-pinleizengjia', isPermission: true}
        ]
      }
    }
  }
</script>

<style scoped lang="stylus">

</style>
